[PATCH] [OpenMP] Replace libomp_check_linker_flag with llvm_check_compiler_linker_flag
authorNikita Popov <npopov@redhat.com>
Thu, 20 Apr 2023 12:59:27 +0000 (14:59 +0200)
committerAndres Salomon <dilinger@debian.org>
Fri, 13 Oct 2023 16:25:00 +0000 (16:25 +0000)
commit4e87834b73cffb7ff2beef06346f7f91f45dad40
tree16e32a3d874b9c5943036174d9b14041a78883e8
parentf07d263aeda2f4476b1b051e26e43a19feb7a28f
[PATCH] [OpenMP] Replace libomp_check_linker_flag with llvm_check_compiler_linker_flag

Replace the custom libomp_check_linker_flag() implementation with
llvm_check_compiler_linker_flag() from the common cmake utils. Due
to the way the custom implementation is implemented (capturing
output from an entire nested cmake invocation) it can easily end
up incorrectly detecting flags as unavailable, e.g. because "error",
"unknown" or similar occurs inside compiler flags, the directory
name, etc.

Fixes https://github.com/llvm/llvm-project/issues/62240.

Differential Revision: https://reviews.llvm.org/D148798

Gbp-Pq: Name new-cmake-build-fix.patch
openmp/runtime/cmake/LibompCheckLinkerFlag.cmake [deleted file]
openmp/runtime/cmake/config-ix.cmake